(function(angular) {
	'use strict';
	angular.module("fs.waf").factory("ppfCreateService", ppfCreateService);
	ppfCreateService.$inject = [ '$q', 'loggerFactory', 'commonService', 'ajaxServiceFactory' ];
	function ppfCreateService($q, loggerFactory, commonService, ajaxServiceFactory) {
		var log = loggerFactory.getLogger("ppfRepaymentService");
		var ajaxService = ajaxServiceFactory.buildAjaxService({
			getCurrencyOptions : {
				url : 'do/cda/dataList/currenciesBySiteCode',
				method : 'get'
			}
		});
		
		function getCurrencyOptions() {
			var defer = $q.defer();
			ajaxService.getCurrencyOptions().then(function(response) {
				defer.resolve(response ? response : {});
			});
			return defer.promise;
		};
		
		return {
			getCurrencyOptions : getCurrencyOptions
		};
	}
})(angular);